package uk.dier.account.dao;

import java.util.List;

import uk.dier.account.dto.MarketDto;
import uk.dier.account.entity.Market;
import uk.dier.account.exception.ExceptionDao;

public interface ISMarketDao {

	/**
	 * Save a new market
	 * @param newMarket
	 */
	public void saveMarket(Market newMarket) throws ExceptionDao;
	
	/**
	 * Update a new market
	 * @param updateMarket
	 */
	public void updateMarket(Market updateMarket) throws ExceptionDao;
	
	/**
	 * Delete a market
	 * @param removeMarket
	 */
	public void deleteMarket(Market removeMarket) throws ExceptionDao;
	
	/**
	 * Find the market that content some word in the name
	 * @param market
	 * @return A list of the MarketDto
	 */
	public List<MarketDto> findMarketByName(Market market) throws ExceptionDao;
}
